import threading ,time
start = time.time()
def show(arg):
    time.sleep(1)
    print("thread"+str(arg))

for i in range(10):
    t = threading.Thread(target=show, args=(i,))
    #t.setDaemon(True)
    t.start()
    # t.join()

print("stop!")
print("cost:"+str(time.time()-start))